package com.sctvcloud.zhaohua_sd.ui.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ruihang.generalibrary.ui.adapter.BaseHolderAbsAdapter;
import com.ruihang.generalibrary.ui.util.OnItemInternalClick;
import com.sctvcloud.zhaohua_sd.R;
import com.sctvcloud.zhaohua_sd.beans.GovItemBean;
import com.sctvcloud.zhaohua_sd.beans.NewsItem;
import com.sctvcloud.zhaohua_sd.ui.adapter.holder.CityStaNewsHolder;
import com.sctvcloud.zhaohua_sd.ui.adapter.holder.GovStuffHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/7/17 0017.
 */

public class GovStuffAdapter extends BaseHolderAbsAdapter<GovItemBean, GovStuffHolder> {
    public GovStuffAdapter(Context context, List<GovItemBean> list) {
        super(context, list);
    }

    @Override
    public GovStuffHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_gov_stuff, parent, false);
        GovStuffHolder holder = new GovStuffHolder(context, view);
        holder.setInternalClick(this);
        return holder;
    }

    @Override
    public GovStuffAdapter setItemInternalClick(OnItemInternalClick itemInternalClick) {
        super.setItemInternalClick(itemInternalClick);
        return this;
    }
}
